package com.rytx.system.service;

import java.util.List;

import com.rytx.common.core.domain.AjaxResult;
import com.rytx.system.domain.ArtOrderAfter;
import com.rytx.system.domain.ysp.ArtMessage;

/**
 * 售后订单Service接口
 *
 * @author rytx
 * @date 2024-08-29
 */
public interface IArtOrderAfterService
{
    /**
     * 查询售后订单
     *
     * @param id 售后订单主键
     * @return 售后订单
     */
    public ArtOrderAfter selectArtOrderAfterById(Long id);

    /**
     * 查询售后订单列表
     *
     * @param artOrderAfter 售后订单
     * @return 售后订单集合
     */
    public List<ArtOrderAfter> selectArtOrderAfterList(ArtOrderAfter artOrderAfter);

    /**
     * 新增售后订单
     *
     * @param artOrderAfter 售后订单
     * @return 结果
     */
    public int insertArtOrderAfter(ArtOrderAfter artOrderAfter);

    /**
     * 修改售后订单
     *
     * @param artOrderAfter 售后订单
     * @return 结果
     */
    public int updateArtOrderAfter(ArtOrderAfter artOrderAfter);

    /**
     * 批量删除售后订单
     *
     * @param ids 需要删除的售后订单主键集合
     * @return 结果
     */
    public int deleteArtOrderAfterByIds(Long[] ids);

    /**
     * 删除售后订单信息
     *
     * @param id 售后订单主键
     * @return 结果
     */
    public int deleteArtOrderAfterById(Long id);

    void createOrderAfter(ArtOrderAfter artOrderAfter);

    ArtOrderAfter getOrderAfterInfo(String orderNo);

    void updateOrderAfterLogisticsInfo(ArtOrderAfter artOrderAfter);

    AjaxResult updateOrderAfterStatus(ArtOrderAfter artOrderAfter);
    AjaxResult updateOrdermessageAfterStatus(ArtOrderAfter artOrderAfter, ArtMessage artMessage);

    List<ArtOrderAfter> selectArtOrderAfterListByAfterType(ArtOrderAfter artOrderAfter);

    void afterUnfreezeFailTask();

    String cancelOrderAfter(ArtOrderAfter artOrderAfter);
}
